#include "gwbase/base/thread.h"
#include "gwbase/base/test_harness.h"
#include <boost/bind.hpp>

class ThreadTest {};

void TestThreadFunc1() {}

TEST(ThreadTest, Join) {
  dicom::ThreadPtr t1(new dicom::Thread(boost::bind(TestThreadFunc1), "t1"));

  t1->Start();
  t1->Join();

  t1.reset();
}

int main() {
  dicom::RunAllTests();
  return 0;
}
